package com.sc.softmgr.business.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class IndexController {

	/**
	 * 登陆页
	 * 
	 * @return
	 */
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public String login(Model model) {
		return "login/login";
	}

	/**
	 * 首页
	 * 
	 * @return
	 */
	@RequestMapping(value = "index", method = RequestMethod.GET)
	public String index(Model model) {
		return "index/index";
	}

	/**
	 * 首页main页面
	 * 
	 * @return
	 */
	@RequestMapping(value = "main", method = RequestMethod.GET)
	public String main(Model model) {
		return "index/include/main";
	}

	/**
	 * 跳转到用户管理页面
	 * 
	 * @return
	 */
	@RequestMapping(value = "api/toSysUser", method = RequestMethod.GET)
	public String toSysUser() {
		return "sysUser/sysUser";
	}

	/**
	 * 跳转到菜单管理页面
	 * 
	 * @return
	 */
	@RequestMapping(value = "api/toSysMenu", method = RequestMethod.GET)
	public String toSysMenu(Model model) {
		return "sysMenu/sysMenu";
	}

	/**
	 * 跳转到灰度管理
	 * 
	 * @return
	 */
	@RequestMapping(value = "api/toSysGray", method = RequestMethod.GET)
	public String toSysGray() {
		return "sysGray/sysGray";
	}

	/**
	 * 跳转到项目管理页面
	 * 
	 * @return
	 */
	@RequestMapping(value = "api/toSoftProject", method = RequestMethod.GET)
	public String toSoftProject() {
		return "softProject/softProject";
	}

	/**
	 * 跳转到系统管理页面
	 * 
	 * @return
	 */
	@RequestMapping(value = "api/toSoftSystem", method = RequestMethod.GET)
	public String toSoftSystem() {
		return "softSystem/softSystem";
	}

	/**
	 * 跳转到子系统管理页面
	 * 
	 * @return
	 */
	@RequestMapping(value = "api/toSoftSubSystem", method = RequestMethod.GET)
	public String toSoftSubSystem() {
		return "softSubSystem/softSubSystem";
	}

	/**
	 * 跳转到软件信息管理页面
	 * 
	 * @return
	 */
	@RequestMapping(value = "api/toSoftmgrSoftinfo", method = RequestMethod.GET)
	public String toSoftmgrSoftinfo() {
		return "softSoftinfo/softSoftinfo";
	}

	/**
	 * 跳转到分类管理页面
	 * 
	 * @return
	 */
	@RequestMapping(value = "api/toSoftmgrCategory", method = RequestMethod.GET)
	public String toSoftmgrCategory() {
		return "softCategory/softCategory";
	}

}
